package com.xjtu.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjtu.mybatisplus.model.domain.Review;
import com.xjtu.mybatisplus.model.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import com.xjtu.mybatisplus.model.vo.adminVo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lsong
 * @since 2023-12-27
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    IPage<UserVo> queryPage(Page<UserVo> page,@Param("content") String content);

    Long getUserRole(Long userId);



    Integer updateByEmail(String email);

    Integer insertRole(Long userId);

    List<User> getReviewer();


}
